package com.ys.entity.base;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_MedicarePayItem", catalog="Id")
public class TbMedicarePayItem extends BaseEntity<TbMedicarePayItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MedicarePayBid", nameJava="medicarePayBid", typeDataBase="varchar")
	private String medicarePayBid;
	@YsField(nameDataBase="UserMonthPerformanceId", nameJava="userMonthPerformanceId", typeDataBase="bigint")
	private Long userMonthPerformanceId;
	@YsField(nameDataBase="HealthCompany", nameJava="healthCompany", typeDataBase="decimal")
	private BigDecimal healthCompany;
	@YsField(nameDataBase="HealthPersonal", nameJava="healthPersonal", typeDataBase="decimal")
	private BigDecimal healthPersonal;
	@YsField(nameDataBase="BirthCompany", nameJava="birthCompany", typeDataBase="decimal")
	private BigDecimal birthCompany;
	@YsField(nameDataBase="Vbz", nameJava="vbz", typeDataBase="varchar")
	private String vbz;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbMedicarePayItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getMedicarePayBid() {
		return medicarePayBid;
	}
	public TbMedicarePayItem setMedicarePayBid(String medicarePayBid) {
		this.medicarePayBid = medicarePayBid;
		return this;
	}
	public Long getUserMonthPerformanceId() {
		return userMonthPerformanceId;
	}
	public TbMedicarePayItem setUserMonthPerformanceId(Long userMonthPerformanceId) {
		this.userMonthPerformanceId = userMonthPerformanceId;
		return this;
	}
	public BigDecimal getHealthCompany() {
		return healthCompany;
	}
	public TbMedicarePayItem setHealthCompany(BigDecimal healthCompany) {
		this.healthCompany = healthCompany;
		return this;
	}
	public BigDecimal getHealthPersonal() {
		return healthPersonal;
	}
	public TbMedicarePayItem setHealthPersonal(BigDecimal healthPersonal) {
		this.healthPersonal = healthPersonal;
		return this;
	}
	public BigDecimal getBirthCompany() {
		return birthCompany;
	}
	public TbMedicarePayItem setBirthCompany(BigDecimal birthCompany) {
		this.birthCompany = birthCompany;
		return this;
	}
	public String getVbz() {
		return vbz;
	}
	public TbMedicarePayItem setVbz(String vbz) {
		this.vbz = vbz;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbMedicarePayItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbMedicarePayItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbMedicarePayItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbMedicarePayItem tbMedicarePayItem(
		String medicarePayBid,
		Long userMonthPerformanceId,
		BigDecimal healthCompany,
		BigDecimal healthPersonal,
		BigDecimal birthCompany,
		String vbz,
		Integer status
			) {
		TbMedicarePayItem entity = new TbMedicarePayItem();
		entity.setMedicarePayBid(medicarePayBid);
		entity.setUserMonthPerformanceId(userMonthPerformanceId);
		entity.setHealthCompany(healthCompany);
		entity.setHealthPersonal(healthPersonal);
		entity.setBirthCompany(birthCompany);
		entity.setVbz(vbz);
		entity.setStatus(status);
		return entity;
	}
}